/**
 * class: Definitions
 * 		- A singleton class referred by all other classes.
 * 		- It keeps all the definitions commonly used in the project.
 */

package common;

public class Def {
	// definitions
	public static final int ACK = 0x01;
	public static final int NAK = 0x00;
	
	public static final int IDLE = 0x10;
	
	public static final int ELECTION = 0x11;
	public static final int COORDINATOR = 0x12;
	//public static final int ELECTION_OK = 0x13; --> use ACK
	
	public static final int RESYNC = 0x100;
	public static final int SYNC_REQ = 0x101;
	public static final int REQ = 0x102;
	
	public static final int MW_REQ = 0x011;
	public static final int MW_NOTIFY = 0x012;
	
	public static final int ROOT_KILL = 0x200;		// super user messages (msg injector)
	public static final int ROOT_SLEEP = 0x201;		// super user messages (msg injector)
	
	public static final byte STDOUT = 0x01;
	public static final byte STDERR = 0x02;
	
	public static final long MIDDLEWARE_IP = 3232235521L;
}
